package com.zhengshang.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhengshang.common.annotation.Excel;
import com.zhengshang.common.core.domain.BaseEntity;

/**
 * 淘宝与系统用户关系对象 app_tao_relation
 * 
 * @author zhengshang
 * @date 2022-04-23
 */
public class AppTaoRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long taoRelationId;

    /** 系统内部userId */
    @Excel(name = "系统内部userId")
    private Long userId;

    /** 渠道关系ID */
    @Excel(name = "渠道关系ID")
    private Long relationId;

    /** 会员运营ID */
    @Excel(name = "会员运营ID")
    private Long specialId;

    /** 渠道昵称 */
    @Excel(name = "渠道昵称")
    private String accountName;

    /** 淘宝token */
    @Excel(name = "淘宝token")
    private String accessToken;

    /** 授权到期时间 */
    @Excel(name = "授权到期时间")
    private Long expiresIn;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setTaoRelationId(Long taoRelationId) 
    {
        this.taoRelationId = taoRelationId;
    }

    public Long getTaoRelationId() 
    {
        return taoRelationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRelationId(Long relationId) 
    {
        this.relationId = relationId;
    }

    public Long getRelationId() 
    {
        return relationId;
    }
    public void setSpecialId(Long specialId) 
    {
        this.specialId = specialId;
    }

    public Long getSpecialId() 
    {
        return specialId;
    }
    public void setAccountName(String accountName) 
    {
        this.accountName = accountName;
    }

    public String getAccountName() 
    {
        return accountName;
    }
    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }
    public void setExpiresIn(Long expiresIn) 
    {
        this.expiresIn = expiresIn;
    }

    public Long getExpiresIn() 
    {
        return expiresIn;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taoRelationId", getTaoRelationId())
            .append("userId", getUserId())
            .append("relationId", getRelationId())
            .append("specialId", getSpecialId())
            .append("accountName", getAccountName())
            .append("accessToken", getAccessToken())
            .append("expiresIn", getExpiresIn())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
